/*
 * @Descripttion: 
 * @version: 
 * @Author: 宁乃楚
 * @Date: 2021-07-03 09:20:56
 * @LastEditors: 宁乃楚
 * @LastEditTime: 2021-07-06 09:08:17
 */
// 导入axios
import { get, post, post_json } from '@/http/axios'
export default {
    namespaced: true,
    state: {
      // 订单数据
      detailData:[]
    },
    mutations: {
      SET_DETAILDATA(state, payload){
        state.detailData = payload
      }
    },
    actions: {
      // 获取订单详情
      async getOrderDetailData({commit}, payload){
        let res = await get('/order/findById', payload)
        commit('SET_DETAILDATA', res.data.data)
        console.log(res.data.data);
      }
    }
  }